package cn.sinonet.sms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.sinonet.sms.dao.DQZFDao;
import cn.sinonet.sms.model.DQZF;

@Service("dqzfManager")
public class DQZFManagerImp extends GenericManagerImp<DQZF, Long> implements
		DQZFManager {

	DQZFDao dqzfDao;

	public DQZFDao getDqzfDao() {
		return dqzfDao;
	}

	@Autowired
	public void setDqzfDao(DQZFDao dqzfDao) {
		this.dao = dqzfDao;
		this.dqzfDao = dqzfDao;
	}

	@Override
	public DQZF saveDQZF(DQZF dqzf) {
		return dao.save(dqzf);
	}

	public DQZF loadByMessageAndPhone(String message, String phone, String time) {
		return (DQZF) dqzfDao.loadByMessageAndPhone(message, phone, time);
	}

	public DQZF loadByMessageAndPhone(String message, String phone) {
		return (DQZF) dqzfDao.loadByMessageAndPhone(message, phone);
	}

}
